package com.bd.scm.domain.models.enclosure;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 附件表
 * </p>
 *
 * @author Mason
 * @since 2020-01-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("bd_enclosure")
public class BdEnclosure extends Model<BdEnclosure> {

    private static final long serialVersionUID = 1L;

    /**
     * 表id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 单子ID
     */
    @TableField("order_id")
    private Integer orderId;
    /**
     * 单子类型(1:请假,2:加班,3:补出勤)
     */
    @TableField("order_type")
    private Integer orderType;
    /**
     * 附件原始名称
     */
    @TableField("original_name")
    private String originalName;
    /**
     * 附件地址
     */
    @TableField("enclosure_addr")
    private String enclosureAddr;
    /**
     * 记录创建人
     */
    @TableField("creater_id")
    private String createrId;
    /**
     * 记录创建时间
     */
    @TableField("create_time")
    private Date createTime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
